function bindSuggestInput(object, url) {
    var suggestion = $('<div style="position: absolute;z-index: 999; display: block;background-color: #a8d8eb;border: 1px solid #000000;margin: 0px;padding: 0px;opacity: 0.95" id="suggestion" ></div>');
    suggestion.css(
        {
            top:parseFloat(object.offset().top) + object.height() + 'px',
            left:parseFloat(object.offset().left - 8) + 'px'
        }
    );
    function hideSuggestion() {
        suggestion.empty();
        suggestion.hide();
    }

    function trySearch(e) {
        var key = e.keyCode;
        if (!((key >= 16 && key <= 20) || (key >= 37 && key <= 40) || (key >= 112 && key <= 123))) {
            suggestion.empty();
            if (!$(this).val() || $.trim($(this).val()) == '') {
                suggestion.hide()//没有内容时隐藏
            } else {
                //先执行ajax查询
                var param = {};
                param['filter_LIKES_name'] = $.trim($(this).val());
                param['page.order'] = "asc";
                param['page.orderBy'] = "name";
                param['page.pageNo'] = "1";
                param['page.pageSize'] = "100";
                $.ajax({
                    type: "POST",
                    url: url,
                    dataType:'json',
                    data: param,
                    success: showResult
                });
            }
        }
    }

    function showResult(data) {
        if (data && data.length > 0) {
            $(data).each(function() {
                if (this.length > 0) {
                    var li = $("<p style='margin:0px;padding:0px;cursor:pointer'>" + this + "</p>").appendTo(suggestion);
                }
            });
            if (suggestion.children("p").length > 0) {
                $.each(suggestion.children("p"), function() {
                    $(this).bind('click', function() {
                        object.val($(this).text());
                        hideSuggestion();
                    });
                })
                suggestion.show();
            }
        }
    }

    object.after(suggestion);
    suggestion.hide();
    object.bind('keyup', trySearch);
}